<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
   var a1=prompt('请输入明明购买的商品名称')
   var a2=prompt('请输入明明购买的商品数量')
   document.write('<h1>购物清单</h1>') 
   document.write('商品名称 购买数量 <br>')
   document.write(a1+'&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp'+a2)

</script>
</html>